<?php
$this->breadcrumbs = array(
    'Post' => array('post/index'),
    'Comment',
);
?>
<div class="box">
    <header>
        <h5><i class="icon icon-user"></i> - Manager comment of post "<?php echo $title ?>"</h5>
    </header>
    <div class="box">

	<?php
	$this->widget('bootstrap.widgets.TbGridView', array(
	    'id' => 'post-grid',
	    'dataProvider' => $model->search($post),
	    'filter' => $model,
	    'columns' => array(
		array(
		    'header' => 'Commenter',
		    'name' => 'userName',
		    'value' => '$data->user->username'
		),
		'name' => 'content',
		array(
		    'name' => 'time_created',
		    'type' => 'datetime',
		    'filter' => false
		),
		array(
		    'class' => 'bootstrap.widgets.TbButtonColumn',
		    'template' => '{delete}'
		),
	    ),
	));
	?>
    </div>
</div>